<?php
/**
{
    "coursePointId": "INT //课程特点ID",
    "pointId": "INT //课程特点@foreign::tbl_point; ",
    "pointName": "VARCHAR //",
    "img": "VARCHAR //图片@image; ",
    "courseId": "INT //课程@foreign::tbl_course; @search; ",
    "sort": "INT //排序",
    "status": "TINYINT //状态@status; 3::有效::@admin; 88::删除::@admin; "
}
 */

class CoursePoint extends Base
{
    
	private $coursePointId= '';//课程特点ID
	private $pointId= "0";//课程特点@foreign::tbl_point;
	private $pointName= NULL;//
	private $img= NULL;//图片@image;
	private $courseId= "0";//课程@foreign::tbl_course;@search;
	private $sort= "0";//排序
	private $status= "3";//状态@status;3::有效::@admin;88::删除::@admin;

    public $isDbData = false;

    public function __construct()
    {
        parent::__construct();
    }


    public function __get($name) {
        return $this->$name;
    }

    public function __set($name, $value) {
        if(!$this->isDbData){
            if(!in_array($name,$this->loadedFiled))$this->loadedFiled[] = $name;
        }

        $this->$name=$value;
        $this->arr[$name] = $value;
    }

    public  function table()
    {
        return 'tbl_course_point';
    }
    
    public  function key(){
        return 'coursePointId';
    }


    
    public static  function hideField()
    {
        return [];
    }
            
    public static  function skipField()
    {
        return [];
    }
            
    public static  function noViewField()
    {
        return [];
    }
            
    public static  function jsonField()
    {
        return [];
    }
            
    public static  function noLoadField()
    {
        return [];
    }
            
    public static  function deleteField()
    {
        return [];
    }
            
    public function className()
    {
        return 'CoursePoint';
    }
    
    public  function field()
    {
        return array (  'coursePointId' =>   array (    0 => 'INT',    1 => 11,    2 => '课程特点ID',  ),  'pointId' =>   array (    0 => 'INT',    1 => 11,    2 => '课程特点@foreign::tbl_point;',  ),  'pointName' =>   array (    0 => 'VARCHAR',    1 => 100,    2 => '',  ),  'img' =>   array (    0 => 'VARCHAR',    1 => 255,    2 => '图片@image;',  ),  'courseId' =>   array (    0 => 'INT',    1 => 11,    2 => '课程@foreign::tbl_course;@search;',  ),  'sort' =>   array (    0 => 'INT',    1 => 11,    2 => '排序',  ),  'status' =>   array (    0 => 'TINYINT',    1 => 4,    2 => '状态@status;3::有效::@admin;88::删除::@admin;',  ),);
    }


}